<div nz-row>
  <div nz-col [nzOrder]="formOrder" [nzXXl]="12" [nzXl]="12" [nzLg]="24" [nzMd]="24" [nzSm]="24" [nzXs]="24">
    <form [nzLayout]="'horizontal'" nz-form [formGroup]="validateForm" (ngSubmit)="submitForm()">
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="mac">MAC(mg/m3)</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="MAC">
          <input nz-input formControlName="mac" id="mac" placeholder="MAC"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="pctwa">PC-TWA</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="pctwa">
          <input nz-input formControlName="pctwa" id="pctwa" placeholder="PC-TWA"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="pcstel">PC-STEL</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="pcstel">
          <input nz-input formControlName="pcstel" id="pcstel" placeholder="PC-STEL"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="peopleProtect">个体防护装备</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="个体防护装备">
          <input nz-input formControlName="peopleProtect" id="peopleProtect" placeholder="个体防护装备"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="controlProject">工程控制</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="工程控制">
          <input nz-input formControlName="controlProject" id="controlProject" placeholder="工程控制"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="protectBreath">呼吸系统防护</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="呼吸系统防护">
          <input nz-input formControlName="protectBreath" id="protectBreath" placeholder="呼吸系统防护"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="protectEye">眼睛防护</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="眼睛防护">
          <input nz-input formControlName="protectEye" id="protectEye" placeholder="眼睛防护"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="protectBody">身体防护</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="身体防护">
          <input nz-input formControlName="protectBody" id="protectBody" placeholder="身体防护"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="protectHand">手防护</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="手防护">
          <input nz-input formControlName="protectHand" id="protectHand" placeholder="手防护"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item>
        <nz-form-label nzSpan="12" nzFor="protectOther">其他防护</nz-form-label>
        <nz-form-control nzSpan="12" nzErrorTip="其他防护">
          <input nz-input formControlName="protectOther" id="protectOther" placeholder="其他防护"/>
        </nz-form-control>
      </nz-form-item>
      <nz-form-item *ngIf="AdminService.isAdmin" nz-row class="register-area">
        <nz-form-control [nzSpan]="12" [nzOffset]="12">
          <button nz-button nzType="primary">确定</button>
        </nz-form-control>
      </nz-form-item>
    </form>
  </div>
</div>
<ng-template #combineTpl let-control>
  <ng-container *ngIf="control.hasError('message')">{{control.errors['message']}}</ng-container>
  <ng-container *ngIf="control.hasError('required')">必填项</ng-container>
</ng-template>


